package cn.edu.cug.cs.gtl.renders.openinventor.callbacks;

import cn.edu.cug.cs.gtl.apis.render.Selector;
import cn.edu.cug.cs.gtl.apis.render.callbacks.SelectionPathCallback;
import cn.edu.cug.cs.gtl.apis.render.paths.Path;
import com.openinventor.inventor.SoPath;
import com.openinventor.inventor.misc.callbacks.SoSelectionPathCB;
import com.openinventor.inventor.nodes.*;

import java.awt.*;

public class SelectionPathCallbackImpl extends CallbackImpl implements SelectionPathCallback {

    public SelectionPathCallbackImpl(Selector s){
        this.nativeObject = new MySelectionPathCallback(s);
    }

    @Override
    public void invokePath(Path path) {
        ((MySelectionPathCallback)this.nativeObject).invoke(path.getNativeObject());
    }
}
